package com.kensure.shike.weixinpay.model;

import java.util.HashMap;
import java.util.Map;

/**
 * 微信提现用的查询数据对象
 * 
 * @author Administrator
 *
 */
public class WXTixianChaXuninfo implements java.io.Serializable {

	private static final long serialVersionUID = 3545276994084105527L;
	private String appid;// 小程序ID
	private String mch_id;// 商户号
	private String nonce_str;// 随机字符串
	private String sign;// 签名
	private String partner_trade_no;// 商户订单号

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getMch_id() {
		return mch_id;
	}

	public void setMch_id(String mch_id) {
		this.mch_id = mch_id;
	}

	public String getNonce_str() {
		return nonce_str;
	}

	public void setNonce_str(String nonce_str) {
		this.nonce_str = nonce_str;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getPartner_trade_no() {
		return partner_trade_no;
	}

	public void setPartner_trade_no(String partner_trade_no) {
		this.partner_trade_no = partner_trade_no;
	}

	public WXTixianChaXuninfo(WXPayinfo info) {
		this.setAppid(info.getAppid());
		this.setMch_id(info.getMch_id());
		this.setNonce_str(info.getNonce_str());
		this.setPartner_trade_no(info.getOut_trade_no());
	}

	/**
	 * 提现接口转map
	 * 
	 * @return
	 */
	public Map<String, Object> toUnitMap() {
		Map<String, Object> sParaTemp = new HashMap<String, Object>();
		sParaTemp.put("appid", this.getAppid());
		sParaTemp.put("mch_id", this.getMch_id());
		sParaTemp.put("nonce_str", this.getNonce_str());
		sParaTemp.put("partner_trade_no", this.getPartner_trade_no());
		return sParaTemp;
	}
}